# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import time
class EcspiderPipeline(object):
    def __init__(self):
        self.file = open('result%f.txt' % time.time(),'wb')
  
    def process_item(self, item, spider):
        line = item["itemjson"] + "\n"
        self.file.write(line)
        return item
